package C11_6_ExtractSubclass;

/**
 * @ClassName : LaborItem
 * @Description :
 * @Author : wukj1
 * @Date: 2022/8/15
 **/
public class LaborItem extends JobItem{
    /** 重构中 */
    public LaborItem(int _unitPrice, int _quantity, boolean _isLabor, Employee _employee) {
        super(_unitPrice, _quantity, _isLabor, _employee);
    }


    /** 重构后 */
//    protected Employee _employee;
//
//    public LaborItem(int _quantity, Employee _employee) {
//        super(0, _quantity);
//        this._employee = _employee;
//    }
//
//    @Override
//    public int getUnitPrice() {
//        return _employee.getRate();
//    }
//
//    public Employee getEmployee() {
//        return this._employee;
//    }
}
